package cn.lili.controller.feign.wechat;

import cn.lili.modules.wechat.client.WechatMPMessageClient;
import cn.lili.modules.wechat.entity.dos.WechatMPMessage;
import cn.lili.modules.wechat.service.WechatMPMessageService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 微信公众号消息订阅feign
 *
 * @author ftyy
 * @since  2023/3/22
 */
@RestController
@RequiredArgsConstructor
public class WechatMPMessageFeignController implements WechatMPMessageClient {

    public final WechatMPMessageService wechatMPMessageService;

    @Override
    public List<WechatMPMessage> list() {
        return wechatMPMessageService.list();
    }
}
